Skip to content

Add cdktf - #2767

Closed
Anmepod44 wants to merge 2 commits into
vinta:masterfrom
Anmepod44:master
Closed

Anmepod44 wants to merge 2 commits into
vinta:masterfrom
Anmepod44:master

Conversation

@Anmepod44

Copy link
Copy Markdown

What is this Python project?

This adds CDK for Terraform (cdktf). CDK for Terraform lets you define Terraform infrastructure using familiar programming languages while giving you high-level constructs, modularity, and tight integration with Terraform’s provider ecosystem. It makes infrastructure code more testable and reusable.

Describe features.

  • Using Python to generate and manage Terraform configurations programmatically.
  • Reusable and testable infrastructure modules that integrate directly with the Terraform provider ecosystem.
  • Simplified infrastructure workflows for DevOps teams already using Ansible or Python-based automation.
  • Full compatibility with Terraform’s state management and lifecycle operations.

What's the difference between this Python project and similar ones?

  1. Ansible: Ansible focuses on configuration management and task automation, while ansible-cdktf emphasizes infrastructure provisioning through Terraform. The two tools complement each other—Ansible manages what runs on servers, CDKTF defines where those servers come from.

  2. Pyinfra: pyinfra executes remote commands and manages servers via SSH; ansible-cdktf operates declaratively, building complete infrastructure environments.

  3. SaltStack: SaltStack uses YAML-based states and a master-minion model; ansible-cdktf leverages Python for infrastructure code, making it more flexible and object-oriented.

  4. Terraform CLI: Traditional Terraform uses HCL (HashiCorp Configuration Language); ansible-cdktf replaces HCL with Python syntax, enabling logic, loops, and abstractions native to a full programming language.

Enumerate comparisons.

--

Anyone who agrees with this pull request could submit an Approve review to it.

This adds CDK for Terraform (cdktf). CDK for Terraform lets you define Terraform infrastructure using familiar programming languages while giving you high-level constructs, modularity, and tight integration with Terraform’s provider ecosystem. It makes infrastructure code more testable and reusable.

@YuzeHao2023 YuzeHao2023 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vinta

vinta commented Jan 8, 2026

Copy link
Copy Markdown
Owner

Thank you for your submission. Unfortunately, this project (terraform-cdk) is archived and no longer actively maintained. Please see CONTRIBUTING.md for acceptance criteria.

@vinta vinta closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants